
<section class="panel">
<div class="stocks index">
	<header class="panel-heading">Stocks</header>
        <div class="table-responsive">
	<table cellpadding="0" cellspacing="0" class="table table-striped border-top dataTable">
	<tr>
			<th><?php echo $this->Paginator->sort('id'); ?></th>
			<th><?php echo $this->Paginator->sort('chassis_no'); ?></th>
			<th><?php echo $this->Paginator->sort('year'); ?></th>
			<th><?php //echo $this->Paginator->sort('categoty'); ?></th>
			<th><?php //echo $this->Paginator->sort('make'); ?></th>
			<th><?php //echo $this->Paginator->sort('model'); ?></th>
			<th><?php //echo $this->Paginator->sort('transm'); ?></th>
			<th><?php //echo $this->Paginator->sort('weight'); ?></th>
			<th><?php echo $this->Paginator->sort('drive'); ?></th>
			<th><?php echo $this->Paginator->sort('user_new'); ?></th>
			<th><?php echo $this->Paginator->sort('doors'); ?></th>
			<th><?php echo $this->Paginator->sort('country'); ?></th>
			<th><?php echo $this->Paginator->sort('engine_type'); ?></th>
			<th><?php echo $this->Paginator->sort('fuel'); ?></th>
			<th><?php echo $this->Paginator->sort('engine_no'); ?></th>
			<th><?php echo $this->Paginator->sort('his_code'); ?></th>
			<th><?php echo $this->Paginator->sort('location'); ?></th>
			<th><?php echo $this->Paginator->sort('showroom'); ?></th>
			<th><?php echo $this->Paginator->sort('options'); ?></th>
			<th><?php echo $this->Paginator->sort('other_ref'); ?></th>
			<th><?php echo $this->Paginator->sort('mileage'); ?></th>
			<th><?php echo $this->Paginator->sort('int_color'); ?></th>
			<th><?php echo $this->Paginator->sort('auc_grade'); ?></th>
			<th><?php echo $this->Paginator->sort('global_loc'); ?></th>
			<th><?php echo $this->Paginator->sort('showonweb'); ?></th>
			<th><?php echo $this->Paginator->sort('seats'); ?></th>
			<th><?php //echo $this->Paginator->sort('priority'); ?></th>
			<th><?php echo $this->Paginator->sort('selling_price'); ?></th>
			<th><?php //echo $this->Paginator->sort('auction_ref'); ?></th>
			<th><?php //echo $this->Paginator->sort('vh_cc'); ?></th>
			<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($stocks as $stock): ?>
	<tr>
		<td><?php echo h($stock['Stock']['id']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['chassis_no']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['year']); ?>&nbsp;</td>
		<td><?php //echo h($stock['Stock']['categoty']); ?>&nbsp;</td>
		<td><?php //echo h($stock['Stock']['make']); ?>&nbsp;</td>
		<td><?php //echo h($stock['Stock']['model']); ?>&nbsp;</td>
		<td><?php //echo h($stock['Stock']['transm']); ?>&nbsp;</td>
		<td><?php //echo h($stock['Stock']['weight']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['drive']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['user_new']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['doors']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['country']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['engine_type']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['fuel']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['engine_no']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['his_code']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['location']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['showroom']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['options']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['other_ref']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['mileage']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['int_color']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['auc_grade']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['global_loc']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['showonweb']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['seats']); ?>&nbsp;</td>
		<td><?php //echo h($stock['Stock']['priority']); ?>&nbsp;</td>
		<td><?php echo h($stock['Stock']['selling_price']); ?>&nbsp;</td>
		<td><?php //echo h($stock['Stock']['auction_ref']); ?>&nbsp;</td>
		<td><?php //echo h($stock['Stock']['vh_cc']); ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $stock['Stock']['id'])); ?>
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $stock['Stock']['id'])); ?>
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $stock['Stock']['id']), null, __('Are you sure you want to delete # %s?', $stock['Stock']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
        </div>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>
	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
 </section>
